Buffer Types Enumeration
Each of the structures described by the structure types enumeration contains fields that point to different kinds of buffers. When you allocate memory for such a structure using theOTAlloc
function (page 3-92), you can also specify that these buffers be allocated by specifying one or more of the constant names given by the buffer types enumeration.The length of the allocated buffer is at least as large as the size returned for the endpoint by the
OTGetEndpointInfo
function (page 3-82). For each buffer allocated, theOTAlloc
function sets themaxlen
field to the length of the buffer, and thelen
field to 0. To specify more than one constant name, use thebitOR
operator to combine values.
enum { T_ADDR = 0x01, T_OPT = 0x02, T_UDATA = 0x04, T_ALL = 0xffff };Constant descriptions
T_ADDR
- The
addr
field of theTBind
,TCall
,TUDErr
,TUnitRequest
, orTUnitData
structures.T_OPT
- The
opt
field of theTOptMgmt
,TCall
,TUDErr
,TRequest
,TReply
,TUnitRequest
,TUnitReply
, orTUnitData
structures.T_UDATA
- The
udata
field of theTCall
,TDiscon
,TUnitData
,TRequest
,TReply
,TUnitRequest,
orTUnitReply
structures. The value of theudata.maxlen
field depends upon the structure being allocated.T_ALL
- All relevant fields of the desired structure are allocated.